// 导入express模块，创建路由模块
const express = require('express')
const router = express.Router()
// 导入路由处理函数对应的模块
const storeServe = require('../serve/storeServe')

// 获取所有货物
router.get('/storeAll',storeServe.storeAll)

// 获取个人存储物品
router.post('/storePerson',storeServe.storePerson)

// 修改存储物品
router.post('/storeRevise',storeServe.storeRevise)

// 删除存储物品
router.post('/storeDelete',storeServe.storeDelete)

// 查询指定货物
router.post('/storeSearch',storeServe.storeSearch)

// 管理员查询货物
router.post('/storeGuanliSearch',storeServe.storeSearch)

// 添加库存
router.post('/storeAdd',storeServe.storeAdd)

// 将路由对象暴露出去
module.exports = router